<script setup lang="ts">
// 在setup语法中，只需要导入子组件，就可以渲染，不需要components注册
import { ref } from 'vue'
import Son from './compment/Son.vue'

// const money = ref(10000)
// const car = ref('五菱宏光MINI')

// const handlerXiu = (val: number) => {
//   money.value += val
// }

const count = ref(0)
const myStr = ref('')
</script>

<template>
  <h1>根组件</h1>
  <hr />
  <Son v-model="count" v-model:msg="myStr"></Son>
</template>